import {
	request
} from "@/utils/request";
// 获取公告列表
export function getNotice(data) {
	return request({
		url: "/notice/list",
		method: "get",
		data: data,
	});
}
// 获取活动列表
export function getActivity(data) {
	return request({
		url: "/activity/list",
		method: "get",
		data: data,
	});
}
// 获取活动详情
export function activityInfo(data) {
	return request({
		url: "/activity/info",
		method: "get",
		data: data,
	});
}

// 获取公告详情
export function noticeInfo(data) {
	return request({
		url: "/notice/info",
		method: "get",
		data: data,
	});
}

// 报名活动
export function saveActivity(data) {
	return request({
		url: "/user/saveActivity",
		method: "post",
		data: data,
	});
}

// 获取我的报名
export function myActivity(data) {
	return request({
		url: "/user/activity",
		method: "get",
		data: data,
	});
}